/**
 * 
 */
package org.seckill.socket.handler;

import org.springframework.web.socket.CloseStatus;
import org.springframework.web.socket.WebSocketHandler;
import org.springframework.web.socket.WebSocketMessage;
import org.springframework.web.socket.WebSocketSession;

/**
 * 处理类
 * @author yue
 * 2016年7月3日 下午8:58:40
 */
public class MyHandler implements WebSocketHandler {

	/* 连接关闭后处理
	 * @param arg0
	 * @param arg1
	 * @throws Exception 
	 */
	@Override
	public void afterConnectionClosed(WebSocketSession arg0, CloseStatus arg1)
			throws Exception {
		// TODO Auto-generated method stub

	}

	/* 连接确立后
	 * @param arg0
	 * @throws Exception 
	 */
	@Override
	public void afterConnectionEstablished(WebSocketSession arg0)
			throws Exception {
		// TODO Auto-generated method stub

	}

	/* 消息处理
	 * @param arg0
	 * @param arg1
	 * @throws Exception 
	 */
	@Override
	public void handleMessage(WebSocketSession arg0, WebSocketMessage<?> arg1)
			throws Exception {
		// TODO Auto-generated method stub

	}

	/* 传输错误处理
	 * @param arg0
	 * @param arg1
	 * @throws Exception 
	 */
	@Override
	public void handleTransportError(WebSocketSession arg0, Throwable arg1)
			throws Exception {
		// TODO Auto-generated method stub

	}

	/* 支持局部消息
	 * @return 
	 */
	@Override
	public boolean supportsPartialMessages() {
		// TODO Auto-generated method stub
		return false;
	}

}
